<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Embedded SQL Commands</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REV="MADE"
HREF="mailto:pgsql-docs@postgresql.org"><LINK
REL="HOME"
TITLE="PostgreSQL 9.1.2 Documentation"
HREF="index.html"><LINK
REL="UP"
TITLE="ECPG - Embedded SQL in C"
HREF="ecpg.html"><LINK
REL="PREVIOUS"
TITLE="C++ Applications"
HREF="ecpg-cpp.html"><LINK
REL="NEXT"
TITLE="ALLOCATE DESCRIPTOR"
HREF="ecpg-sql-allocate-descriptor.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="stylesheet.css"><META
HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=ISO-8859-1"><META
NAME="creation"
CONTENT="2011-12-01T22:07:59"></HEAD
><BODY
CLASS="SECT1"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="5"
ALIGN="center"
VALIGN="bottom"
><A
HREF="index.html"
>PostgreSQL 9.1.2 Documentation</A
></TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="top"
><A
TITLE="C++ Applications"
HREF="ecpg-cpp.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="top"
><A
HREF="ecpg.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="60%"
ALIGN="center"
VALIGN="bottom"
>Chapter 33. <SPAN
CLASS="APPLICATION"
>ECPG</SPAN
> - Embedded <ACRONYM
CLASS="ACRONYM"
>SQL</ACRONYM
> in C</TD
><TD
WIDTH="20%"
ALIGN="right"
VALIGN="top"
><A
TITLE="ALLOCATE DESCRIPTOR"
HREF="ecpg-sql-allocate-descriptor.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="ECPG-SQL-COMMANDS"
>33.14. Embedded SQL Commands</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="ecpg-sql-allocate-descriptor.html"
>ALLOCATE DESCRIPTOR</A
>&nbsp;--&nbsp;allocate an SQL descriptor area</DT
><DT
><A
HREF="ecpg-sql-connect.html"
>CONNECT</A
>&nbsp;--&nbsp;establish a database connection</DT
><DT
><A
HREF="ecpg-sql-deallocate-descriptor.html"
>DEALLOCATE DESCRIPTOR</A
>&nbsp;--&nbsp;deallocate an SQL descriptor area</DT
><DT
><A
HREF="ecpg-sql-declare.html"
>DECLARE</A
>&nbsp;--&nbsp;define a cursor</DT
><DT
><A
HREF="ecpg-sql-describe.html"
>DESCRIBE</A
>&nbsp;--&nbsp;obtain information about a prepared statement or result set</DT
><DT
><A
HREF="ecpg-sql-disconnect.html"
>DISCONNECT</A
>&nbsp;--&nbsp;terminate a database connection</DT
><DT
><A
HREF="ecpg-sql-execute-immediate.html"
>EXECUTE IMMEDIATE</A
>&nbsp;--&nbsp;dynamically prepare and execute a statement</DT
><DT
><A
HREF="ecpg-sql-get-descriptor.html"
>GET DESCRIPTOR</A
>&nbsp;--&nbsp;get information from an SQL descriptor area</DT
><DT
><A
HREF="ecpg-sql-open.html"
>OPEN</A
>&nbsp;--&nbsp;open a dynamic cursor</DT
><DT
><A
HREF="ecpg-sql-prepare.html"
>PREPARE</A
>&nbsp;--&nbsp;prepare a statement for execution</DT
><DT
><A
HREF="ecpg-sql-set-autocommit.html"
>SET AUTOCOMMIT</A
>&nbsp;--&nbsp;set the autocommit behavior of the current session</DT
><DT
><A
HREF="ecpg-sql-set-connection.html"
>SET CONNECTION</A
>&nbsp;--&nbsp;select a database connection</DT
><DT
><A
HREF="ecpg-sql-set-descriptor.html"
>SET DESCRIPTOR</A
>&nbsp;--&nbsp;set information in an SQL descriptor area</DT
><DT
><A
HREF="ecpg-sql-type.html"
>TYPE</A
>&nbsp;--&nbsp;define a new data type</DT
><DT
><A
HREF="ecpg-sql-var.html"
>VAR</A
>&nbsp;--&nbsp;define a variable</DT
><DT
><A
HREF="ecpg-sql-whenever.html"
>WHENEVER</A
>&nbsp;--&nbsp;specify the action to be taken when an SQL statement causes a specific class condition to be raised</DT
></DL
></DIV
><P
>   This section describes all SQL commands that are specific to
   embedded SQL.  Also refer to the SQL commands listed
   in <A
HREF="sql-commands.html"
>Reference I, <I
>SQL Commands</I
></A
>, which can also be used in
   embedded SQL, unless stated otherwise.
  </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="ecpg-cpp.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="ecpg-sql-allocate-descriptor.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><ACRONYM
CLASS="ACRONYM"
>C++</ACRONYM
> Applications</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ecpg.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>ALLOCATE DESCRIPTOR</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>